<template>
  <van-tabbar route v-if="route.meta.tabbar">
    <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/cart">购物车</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/address">地址</van-tabbar-item>
  </van-tabbar>
</template>

<script lang="ts" setup>
import { ref, reactive } from 'vue';
import { useRouter, useRoute } from 'vue-router';

const route = useRoute();
const router = useRouter();
</script>

<style lang="scss" scoped></style>
